//
//  IMChatViewController.m
//  QXShowing
//
//  Created by 王道道 on 2018/4/20.
//  Copyright © 2018年 doll_dream. All rights reserved.
//

#import "IMChatViewController.h"

#import "UIBarButtonItem+SGBarButton.h"


@interface IMChatViewController ()

@end

@implementation IMChatViewController

//- (void)viewWillAppear:(BOOL)animated {
//    [super viewWillAppear:animated];
//    self.tabBarController.tabBar.hidden = YES;
//}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    [self initNavBarBackBtn];
}
// 系统导航栏返回按钮
- (void)initNavBarBackBtn {
    [self.navigationController setNavigationBarHidden:NO animated:YES];
    
    UIBarButtonItem *leftItem = [UIBarButtonItem createBackBarButtonForDelegate:self action:@selector(backAction:)];
    self.navigationItem.leftBarButtonItem = leftItem;
}

#pragma mark - btn action
- (void)backAction:(id)sender {
    [self.navigationController popViewControllerAnimated:YES];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
